package com.bm.api.controller;

import com.bm.api.service.GiftDescService;
import com.bm.common.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/giftDesc/")
@Api(tags = "查询礼物相关的操作-王文浩")
public class GiftDescController {
    @Resource
    private GiftDescService service;
    @GetMapping("desc.do")
    @ApiOperation(value = "查询最新上架的礼物")
    public R desc(){
        return service.desc();
    }
    @GetMapping("random.do")
    @ApiOperation(value = "随机展示四个礼物当作热门礼物")
    public R random(){
        return service.random();

    }
}
